home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_33443.txt < prev    next >
Text File  |  1990-10-02  |  10KB  |  440 lines

  1. -- card: 33443 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 5352
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   send cardOpened to background
  9. end openCard
  10.  
  11. on move
  12.   global direction,sDoorOpen,demonDead,blastWall,chase,blasting
  13.   if direction = "north" then
  14.     if sDoorOpen then
  15.       if demonDead then
  16.         go to card id 13815
  17.         exit move
  18.       else
  19.         go to card id 13242
  20.         exit move
  21.       end if
  22.     else
  23.       beep
  24.       put "The north door is locked!  You can not enter." into field 3
  25.       exit move
  26.     end if
  27.   end if
  28.   if direction = "east" or direction = "up" then
  29.     go card id 30913
  30.     exit move
  31.   end if
  32.   if direction = "west" or direction = "down" then
  33.     if blastWall then
  34.       go to card id 12716
  35.       exit move
  36.     end if
  37.     go to card id 12023
  38.     exit move
  39.   end if
  40.   if direction = "enter" then
  41.     go to card id 2539
  42.     exit move
  43.   end if
  44.   pass move
  45. end move
  46.  
  47.  
  48. on closeCard
  49.   set the cursor to 4
  50.   put "" into field 3
  51. end closeCard
  52.  
  53. on take
  54.   global object,carried
  55.   -- remember to update carried if you do not pass take
  56.   pass take
  57. end take
  58.  
  59. on drop
  60.   global object,dropRoom,carried
  61.   -- remember to update carried if you do not pass drop
  62.   pass drop
  63. end drop
  64.  
  65. on use
  66.   global object,carried,sDoorOpen
  67.   put last word of object into obj
  68.   delete first char of obj
  69.   delete last char of obj
  70.   if obj="key" then
  71.     put "The door leading north is now unlocked and you may pass through." into field 3
  72.     put true into sDoorOpen
  73.     exit use
  74.   end if
  75.   -- update carried if use results in loss of object
  76.   pass use
  77. end use
  78.  
  79.  
  80.  
  81.  
  82.  
  83. -- part 16 (button)
  84. -- low flags: 80
  85. -- high flags: 2000
  86. -- rect: left=136 top=159 right=195 bottom=170
  87. -- title width / last selected line: 0
  88. -- icon id / first selected line: 9301 / 9301
  89. -- text alignment: 1
  90. -- font id: 0
  91. -- text size: 12
  92. -- style flags: 0
  93. -- line height: 16
  94. -- part name: knife
  95. ----- HyperTalk script -----
  96. on mouseUp
  97.   global takeFlag,examFlag,object,cardID
  98.   put the name of the target into object
  99.   if takeFlag = true
  100.   then send take to card id cardID
  101. else put "a knife" into field 3
  102. put false into examFlag
  103. end mouseUp
  104.  
  105.  
  106.  
  107. -- part 17 (button)
  108. -- low flags: 80
  109. -- high flags: 2000
  110. -- rect: left=103 top=185 right=221 bottom=137
  111. -- title width / last selected line: 0
  112. -- icon id / first selected line: 1015 / 1015
  113. -- text alignment: 1
  114. -- font id: 0
  115. -- text size: 12
  116. -- style flags: 0
  117. -- line height: 16
  118. -- part name: nodule
  119. ----- HyperTalk script -----
  120. on mouseUp
  121.   global takeFlag,examFlag,object,cardID
  122.   put the name of the target into object
  123.   if takeFlag = true
  124.   then send take to card id cardID
  125. else put "a silicon sphere" into field 3
  126. put false into examFlag
  127. end mouseUp
  128.  
  129.  
  130.  
  131. -- part 18 (button)
  132. -- low flags: 80
  133. -- high flags: 2000
  134. -- rect: left=136 top=195 right=231 bottom=170
  135. -- title width / last selected line: 0
  136. -- icon id / first selected line: 14953 / 14953
  137. -- text alignment: 1
  138. -- font id: 0
  139. -- text size: 12
  140. -- style flags: 0
  141. -- line height: 16
  142. -- part name: ladder
  143. ----- HyperTalk script -----
  144. on mouseUp
  145.   global takeFlag,examFlag,object,cardID
  146.   put the name of the target into object
  147.   if takeFlag = true
  148.   then send take to card id cardID
  149. else put "a rope ladder" into field 3
  150. put false into examFlag
  151. end mouseUp
  152.  
  153.  
  154.  
  155. -- part 19 (button)
  156. -- low flags: 80
  157. -- high flags: 2000
  158. -- rect: left=103 top=150 right=186 bottom=137
  159. -- title width / last selected line: 0
  160. -- icon id / first selected line: 1019 / 1019
  161. -- text alignment: 1
  162. -- font id: 0
  163. -- text size: 12
  164. -- style flags: 0
  165. -- line height: 16
  166. -- part name: bomb
  167. ----- HyperTalk script -----
  168. on mouseUp
  169.   global takeFlag,examFlag,object,cardID
  170.   put the name of the target into object
  171.   if takeFlag = true
  172.   then send take to card id cardID
  173. else put "a time bomb" into field 3
  174. put false into examFlag
  175. end mouseUp
  176.  
  177.  
  178.  
  179. -- part 20 (button)
  180. -- low flags: 80
  181. -- high flags: 2000
  182. -- rect: left=38 top=160 right=196 bottom=72
  183. -- title width / last selected line: 0
  184. -- icon id / first selected line: 24317 / 24317
  185. -- text alignment: 1
  186. -- font id: 0
  187. -- text size: 12
  188. -- style flags: 0
  189. -- line height: 16
  190. -- part name: key
  191. ----- HyperTalk script -----
  192. on mouseUp
  193.   global takeFlag,examFlag,object,cardID
  194.   put the name of the target into object
  195.   if takeFlag = true
  196.   then send take to card id cardID
  197. else put "a key" into field 3
  198. put false into examFlag
  199. end mouseUp
  200.  
  201.  
  202.  
  203. -- part 21 (button)
  204. -- low flags: 80
  205. -- high flags: 2000
  206. -- rect: left=113 top=230 right=266 bottom=147
  207. -- title width / last selected line: 0
  208. -- icon id / first selected line: 7012 / 7012
  209. -- text alignment: 1
  210. -- font id: 0
  211. -- text size: 12
  212. -- style flags: 0
  213. -- line height: 16
  214. -- part name: gem
  215. ----- HyperTalk script -----
  216. on mouseUp
  217.   global takeFlag,examFlag,object,cardID
  218.   put the name of the target into object
  219.   if takeFlag = true
  220.   then send take to card id cardID
  221. else put "a glowing gem" into field 3
  222. put false into examFlag
  223. end mouseUp
  224.  
  225.  
  226.  
  227. -- part 22 (button)
  228. -- low flags: 80
  229. -- high flags: 2000
  230. -- rect: left=5 top=227 right=263 bottom=39
  231. -- title width / last selected line: 0
  232. -- icon id / first selected line: 23078 / 23078
  233. -- text alignment: 1
  234. -- font id: 0
  235. -- text size: 12
  236. -- style flags: 0
  237. -- line height: 16
  238. -- part name: orb
  239. ----- HyperTalk script -----
  240. on mouseUp
  241.   global takeFlag,examFlag,object,cardID
  242.   put the name of the target into object
  243.   if takeFlag = true
  244.   then send take to card id cardID
  245. else put "a crystal orb" into field 3
  246. put false into examFlag
  247. end mouseUp
  248.  
  249.  
  250.  
  251. -- part 23 (button)
  252. -- low flags: 00
  253. -- high flags: 0000
  254. -- rect: left=220 top=66 right=106 bottom=252
  255. -- title width / last selected line: 0
  256. -- icon id / first selected line: 0 / 0
  257. -- text alignment: 1
  258. -- font id: 0
  259. -- text size: 12
  260. -- style flags: 0
  261. -- line height: 16
  262. -- part name: 
  263. ----- HyperTalk script -----
  264. on mouseUp
  265.   global examFlag,direction,cardID
  266.   if examFlag then
  267.     put "a dorway on the ledge leading east." into field 3
  268.     put false into examFlag
  269.   else
  270.     put "east" into direction
  271.     send move to card id cardID
  272.   end if
  273. end mouseUp
  274.  
  275.  
  276.  
  277. -- part 34 (button)
  278. -- low flags: 00
  279. -- high flags: 0000
  280. -- rect: left=5 top=130 right=178 bottom=32
  281. -- title width / last selected line: 0
  282. -- icon id / first selected line: 0 / 0
  283. -- text alignment: 1
  284. -- font id: 0
  285. -- text size: 12
  286. -- style flags: 0
  287. -- line height: 16
  288. -- part name: 
  289. ----- HyperTalk script -----
  290. on mouseUp
  291.   global examFlag,direction,cardID
  292.   if examFlag then
  293.     put "a sloping tunnel leading downward to the west." into field 3
  294.     put false into examFlag
  295.   else
  296.     put "west" into direction
  297.     send move to card id cardID
  298.   end if
  299. end mouseUp
  300.  
  301.  
  302.  
  303. -- part 36 (button)
  304. -- low flags: 00
  305. -- high flags: 0000
  306. -- rect: left=48 top=210 right=236 bottom=87
  307. -- title width / last selected line: 0
  308. -- icon id / first selected line: 0 / 0
  309. -- text alignment: 1
  310. -- font id: 0
  311. -- text size: 12
  312. -- style flags: 0
  313. -- line height: 16
  314. -- part name: 
  315. ----- HyperTalk script -----
  316. on mouseUp
  317.   global examFlag,takeFlag,direction,cardID
  318.   if takeFlag then
  319.     beep
  320.     put "The giant wash tub is too heavy for you to carry." into field 3
  321.     put false into takeFlag
  322.     exit mouseUp
  323.   end if
  324.   if examFlag then
  325.     put "A giant wash tub.  You could easily fit in it." into field 3
  326.     put false into examFlag
  327.     exit mouseUp
  328.   end if
  329.   put "enter" into direction
  330.   send move to card id cardID
  331. end mouseUp
  332.  
  333.  
  334.  
  335. -- part 40 (button)
  336. -- low flags: 00
  337. -- high flags: 0000
  338. -- rect: left=2 top=59 right=107 bottom=28
  339. -- title width / last selected line: 0
  340. -- icon id / first selected line: 0 / 0
  341. -- text alignment: 1
  342. -- font id: 0
  343. -- text size: 12
  344. -- style flags: 0
  345. -- line height: 16
  346. -- part name: 
  347. ----- HyperTalk script -----
  348. on mouseUp
  349.   global examFlag,takeFlag,direction,cardID
  350.   if not examFlag then beep
  351.   put false into examFlag
  352.   put false into takeFlag
  353.   put "The doorway on the high ledge on the west wall is too high to reach." into field 3
  354. end mouseUp
  355.  
  356.  
  357.  
  358. -- part 41 (button)
  359. -- low flags: 00
  360. -- high flags: 0000
  361. -- rect: left=170 top=107 right=266 bottom=254
  362. -- title width / last selected line: 0
  363. -- icon id / first selected line: 0 / 0
  364. -- text alignment: 1
  365. -- font id: 0
  366. -- text size: 12
  367. -- style flags: 0
  368. -- line height: 16
  369. -- part name: 
  370. ----- HyperTalk script -----
  371. on mouseUp
  372.   global examFlag,direction,cardID,takeFlag
  373.   if takeFlag then
  374.     beep
  375.     put "You can't carry that massive stone stairway!" into field 3
  376.     put false into takeFlag
  377.     exit mouseUp
  378.   end if
  379.   if examFlag then
  380.     put "A stone stairway leading up to the east ledge." into field 3
  381.     put false into examFlag
  382.   else
  383.     put "east" into direction
  384.     send move to card id cardID
  385.   end if
  386. end mouseUp
  387.  
  388.  
  389.  
  390. -- part 42 (button)
  391. -- low flags: 00
  392. -- high flags: 0000
  393. -- rect: left=90 top=97 right=131 bottom=125
  394. -- title width / last selected line: 0
  395. -- icon id / first selected line: 0 / 0
  396. -- text alignment: 1
  397. -- font id: 0
  398. -- text size: 12
  399. -- style flags: 0
  400. -- line height: 16
  401. -- part name: 
  402. ----- HyperTalk script -----
  403. on mouseUp
  404.   global examFlag,direction,cardID,sDoorOpen,demonDead,takeFlag
  405.   if examFlag then
  406.     put "a barred door leading north." into field 3
  407.     if sDoorOpen
  408.     then put "  The door is unlocked!" after field 3
  409.   else put "  The door is locked!" after field 3
  410.   if demonDead=false then
  411.     put "  Peering through the bars you can see the orb of power " after field 3
  412.     put "in the dimly lit room beyond!" after field 3
  413.   end if
  414.   put false into examFlag
  415. else
  416.   if takeFlag then
  417.     put "You can't take the door." into field 3
  418.     put false into takeFlag
  419.   else
  420.     put "north" into direction
  421.     send move to card id cardID
  422.   end if
  423. end if
  424. end mouseUp
  425.  
  426.  
  427.  
  428. -- part contents for background part 25
  429. ----- text -----
  430. Great Chamber
  431. (looking north)
  432.  
  433. -- part contents for background part 24
  434. ----- text -----
  435. You are on the floor of the Great Chamber.  There is a tunnel leading downward to the west, and a doorway to the north that is blocked by a door made of massive iron bars.  There are two doorways on ledges high on the east and west walls.  A winding stone stairway leads up to the east ledge.  A giant wash tub is sitting here.
  436.  
  437.  
  438. -- part contents for background part 36
  439. ----- text -----
  440. 1